function addClient(elFrom,This,fromApplicant){
	if( !confirm("Create new Applicant?") )return;
	var result = WS(CO("AddApplicant"),fromApplicant?_applID():This.fileID(elFrom),This.pageNumbers(elFrom),fromApplicant?This.fileID(elFrom):null);
	if( showSOAPError(result) )return;
	This.showPages(elFrom,result.value);
}
function addImageToBatch(elFrom,This){
	var batchID = prompt("BatchID:","");
	if( !batchID )return;
	var result = WS(CO("Batch_UploadImage"),batchID,This.fileID(elFrom));
	if( showSOAPError(result) )return;
	alert("You can remove this file now.");
	//This.showPages(elFrom,result.value);
}
function menu_Page_V(menu,This){
	menu.add("-","",undefined,undefined,0);
	menu.add("Image to Batch","addImageToBatch(ce,"+This.id+")",undefined,undefined,0);
	menu.add("New Client","addClient(ce,"+This.id+")",undefined,undefined,0);
}
